import type { RouteRecordRaw } from "vue-router";

function Layout() {
  return import("@/layouts/index.vue");
}

const routes: RouteRecordRaw = {
  path: "/platformConfig",
  component: Layout,
  redirect: "/platformConfig/index",
  name: "platformConfig",
  meta: {
    title: "平台配置",
    icon: "iconfont icon-configure",
  },
  children: [
    {
      path: "index",
      name: "platformConfigIndex",
      component: () => import("@/views/platformConfig/index.vue"),
      meta: {
        sidebar: false,
        title: "平台配置",
        activeMenu: "/platformConfig",
      },
    },
  ],
};

export default routes;
